package com.yihu.cms.service;

import java.io.IOException;
import com.yihu.cms.dataService.hessian.interfaceService.ActivityHService;
import com.yihu.dataService.hessian.resource.ResourceMongoDBManager;
import com.yihu.web.bean.Activity;
import com.yihu.web.bean.vo.ActivityQuery;


public class ActivityService{
	ActivityHService service = null;
	public ActivityService(){
		try {
			service= (ActivityHService)ResourceMongoDBManager
					.getSingleton().getBeans("activityHSC");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public Object addActivity(Activity a){
		return service.addActivity(a);
	}
	public Object deleteActivity(String id ){
		return service.deleteActivity(id);
	}
	public Object getActivity(String id){
		return service.getActivity(id);
	}
	public Object getActivities(ActivityQuery query){
		return service.getActivities(query);
	}
	public Object updateActivity(Activity a){
		return service.updateActivity(a);
	}
	public Object getSignUpActivities(ActivityQuery a){
		return service.getSignUpActivities(a);
	}
	
}
